<!DOCTYPE html>
<html>
<head>
<title>医疗险享受管理</title>
#parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="姓名">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.company" @keyup.enter="query" placeholder="用工单位名称">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.preparationHospital" @keyup.enter="query" placeholder="报备医院">
			</div>
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.telephone" @keyup.enter="query" placeholder="联系电话">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			#if($shiro.hasPermission("medicalenjoymanagement:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("medicalenjoymanagement:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("medicalenjoymanagement:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
			#if($shiro.hasPermission("medicalenjoymanagement:bbqr"))
			<a class="btn btn-primary" @click="bbqr"><i class="fa fa-pencil-square-o"></i>&nbsp;报备确认</a>
			#end
			#if($shiro.hasPermission("medicalenjoymanagement:pjqr"))
			<a class="btn btn-primary" @click="pjqr"><i class="fa fa-pencil-square-o"></i>&nbsp;票据确认</a>
			#end
			#if($shiro.hasPermission("medicalenjoymanagement:hdqr"))
			<a class="btn btn-primary" @click="hdqr"><i class="fa fa-pencil-square-o"></i>&nbsp;回单确认</a>
			#end
			#if($shiro.hasPermission("medicalenjoymanagement:sdqr"))
			<a class="btn btn-primary" @click="sdqr"><i class="fa fa-pencil-square-o"></i>&nbsp;送达确认</a>
			#end
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList&&!showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">姓名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="medicalEnjoyManagement.name" readonly="readonly"  @click="popPage"   placeholder="请选择"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="medicalEnjoyManagement.idno" readonly="readonly"  placeholder="身份证号"/>
			    </div>
			</div>

										<div class="form-group">
			   	<div class="col-sm-2 control-label">用工单位名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="medicalEnjoyManagement.company" readonly="readonly"  placeholder="用工单位名称"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">报备类型</div>
			   	<div class="col-sm-10">
					<select v-model="medicalEnjoyManagement.preparationType" class="form-control">
						<option v-for="preparationType in dictList" :value="preparationType.value">{{preparationType.label}}</option>
					</select>
<!--
			      <input type="text" class="form-control" v-model="medicalEnjoyManagement.preparationType" placeholder="报备类型"/>
-->
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">报备医院</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="medicalEnjoyManagement.preparationHospital" placeholder="报备医院"/>
			    </div>
			</div>

							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
	<div v-show="showtable" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">


			<div v-show="showtable1" class="form-group">
				<div class="col-sm-2 control-label">报备日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="medicalEnjoyManagement.preparationDate" placeholder="报备日期"
						   id="preparationDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"
					/>
				</div>
			</div>
			<div v-show="showtable2" class="form-group">
				<div class="col-sm-2 control-label">票价提交日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="medicalEnjoyManagement.fareSubmissionDate" placeholder="票价提交日期"
						   id="fareSubmissionDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"
					/>
				</div>
			</div>
			<div v-show="showtable2" class="form-group">
				<div class="col-sm-2 control-label">发票金额</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="medicalEnjoyManagement.invoiceAmount" placeholder="发票金额"/>
				</div>
			</div>
			<div v-show="showtable3" class="form-group">
				<div class="col-sm-2 control-label">报备回单日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="medicalEnjoyManagement.receiptDate" placeholder="报备回单日期"
						   id="receiptDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"
					/>
				</div>
			</div>
			<div v-show="showtable4" class="form-group">
				<div class="col-sm-2 control-label">送单日期</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="medicalEnjoyManagement.deliveryDate" placeholder="送单日期"
						   id="deliveryDate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"  readonly="readonly"
					/>
				</div>
			</div>
			<div v-show="showtable3" class="form-group">
				<div class="col-sm-2 control-label">回单金额</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="medicalEnjoyManagement.receiptAmount" placeholder="回单金额"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>


<!-- 弹出框 -->
<div id="popLayer" style="display: none;padding:10px;">
	<table id="popGrid"></table>
	<div id="popGridPager"></div>
	<!--<ul id="menuTree" class="ztree"></ul>-->
</div>

<script src="${rc.contextPath}/js/hr/medicalenjoymanagement.js?_${date.systemTime}"></script>
</body>
</html>